package cc.autoapi.pucong.auto.flow.persistence.repository.log;

import cc.autoapi.pucong.auto.flow.persistence.po.log.ApiInstancePo;
import cc.autoapi.pucong.auto.flow.persistence.utils.jdbc.ExeRunSqlResultPage;

import java.util.Date;
import java.util.List;

/**
 * @author pucong
 * @description 项目api实例 service接口
 * @create 2024-10-07
 */
public interface ApiInstanceService {

    void appendApiLog(String apiInstanceId, String logContent);

    void deleteByApiId(List<String> ids);

    ApiInstancePo getById(String instanceId);

    void save(ApiInstancePo apiInstancePo);

    void updateById(ApiInstancePo updateId);

    Boolean removeBatchByIds(List<String> ids);

    ExeRunSqlResultPage<ApiInstancePo> page(int pageNum, int pageSize, String apiId, Date exeStartTime, Date exeEndTime, Integer exeStatus);
}
